package com.xxkk.gameCore.enums;

/**
 * @author xxkk
 * @version 1.0.0
 * @title ServerType
 * @description ʕ•ᴥ•ʔ
 * @create 2023/11/13 09:47
 **/
public enum ServerType {
    all(1,"全服");
    private int value;
    private String des;

    ServerType(int value, String des) {
        this.value = value;
        this.des = des;
    }
    public static ServerType getServerType(int value){
        for (ServerType serverType : ServerType.values()){
            if(serverType.value == value)
                return serverType;
        }
        return null;
    }
}
